package com.beaven.imserver.net.bean.api.group;

import com.google.common.base.Strings;
import com.google.gson.annotations.Expose;

/**
 * author: Beaven
 * time: 2017/6/1 17:36
 */
public class GroupCreateModel {

  @Expose
  private String name;

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override public String toString() {
    return "GroupCreateModel{" +
        "name='" + name + '\'' +
        '}';
  }

  public static boolean check(GroupCreateModel model) {
    return model != null && (!Strings.isNullOrEmpty(model.getName()));
  }
}
